<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php if ( is_single() ) {
	  wp_title('');
	  echo (' | ');
	  bloginfo('name');
 
	} else if ( is_page() || is_paged() ) {
	  bloginfo('name');
	  wp_title('|');
 
	} else if ( is_author() ) {
	  bloginfo('name');
	  wp_title(' | Archive for ');	  
	  
	} else if ( is_archive() ) {
	  bloginfo('name');
	  echo (' | Archive for ');
	  wp_title('');
 
	} else if ( is_search() ) {
	  bloginfo('name');
	  echo (' | Search Results');
 
	} else if ( is_404() ) {
	  bloginfo('name');
	  echo (' | 404 Error (Page Not Found)');
	  
	} else if ( is_home() ) {
	  bloginfo('name');
 
	} else {
	  bloginfo('name');
	  echo (' | ');
	  echo (''.$blog_longd.'');
	} ?>
</title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<?php if (is_home()) { ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/prototype.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/effects.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/glider.js"></script>
<?php } ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/tabber.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/dropdown-menu.js"></script>

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if (get_settings("sidebar_1_pos") == "right") { ?>
<style type="text/css">
#main-content {float:left;}
#sidebar2 {float:right;}
</style>
<?php } ?>

<?php wp_head(); ?>

<?php if(get_settings("header_insert")) echo stripslashes(get_settings("header_insert")); ?>

</head>
<body>

<div id="wrapper" class="clearfix">
	<div id="header" class="clearfix">
		<div class="sitehead-left">
		<?php $logo = get_settings("site_logo"); ?>
		<?php if($logo) { ?>
			<a href="<?php echo get_option('home'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/logo/<?php echo $logo; ?>" alt="" /></a>
		<?php } else { ?>
			<h1><a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a></h1>
			<h2 id="description"><?php bloginfo('description'); ?></h2>
		<?php } ?>
		</div>
		
		<div class="sitehead-right">
			<div style="float:right;padding-right:5px;">
				<?php include (TEMPLATEPATH . '/searchform.php'); ?>
			</div>
			<div style="float:right;font-size:8pt">
				<span class="rss"><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Subscribe to this blog entries','vn-news'); ?>"><?php _e('Entries','vn-news'); ?></a></span> | 
				<span class="rss"><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('Subscribe to this blog comments','vn-news'); ?>"><?php _e('Comments','vn-news'); ?></a></span>
			</div>
		</div>
		<div id="page-nav" class="clearfix">
			<ul>
				<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>"><?php _e('Home','vn-news'); ?></a></li>
				<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
			</ul>
		</div>
		
	</div>
	
	<div id="cate-nav" class="clearfix">
		<ul class="clearfix">
			<?php wp_list_categories('title_li='); ?>
		</ul>
	</div>
	
	<div id="page" class="clearfix">